﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>千净</title>

    <style type="text/css">
        body {
            padding: 0px;
            margin: 0px auto;
            font-family: Microsoft YaHei,微软雅黑,Microsoft JhengHei,华文细黑,STHeiti,MingLiu;
        }
    </style>

</head>
<body>
    <div>

        @if (ViewBag.resp == 1)
        {
            <h1 style="margin-left:20%;">签到成功</h1>
            <table cellpadding="0px" cellspacing="0px" style="width:100%;">
                <tr>
                    <td align="right" style="height:30px; width:30%;">
                        <span class="title">
                            客户:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.oasName
                        </span>

                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            联系电话:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.osaPhone
                        </span>

                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            详细地址:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.oasAddressDetail
                        </span>

                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            服务类型:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        @if (ViewBag.type == 1)
                        {
                            <span class="desc">
                                单次体验
                            </span>
                        }
                        @if (ViewBag.type == 2)
                        {
                            <span class="desc">
                                签约千净(季度卡)
                            </span>
                        }
                        @if (ViewBag.type == 3)
                        {
                            <span class="desc">
                                签约千净(半年卡)
                            </span>
                        }
                        @if (ViewBag.type == 4)
                        {
                            <span class="desc">
                                签约千净(全年卡)
                            </span>
                        }
                        @if (ViewBag.type == 6)
                        {
                            <span class="desc">
                                签约千净(月卡)
                            </span>
                        }
                        @if (ViewBag.type == 5)
                        {
                            <span class="desc">
                                单项
                            </span>
                        }
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            每月次数:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.ogsTimeMonth /次
                        </span>

                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            开卡时长:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.toSignTime /月
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            赠送时长:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @if (ViewBag.ogsTimeMonth > 1)
                            {
                            @(((ViewBag.ogsTime - ViewBag.ogsTimeMonth * ViewBag.ogsSignTime) / ViewBag.ogsTimeMonth) < 0 ? 0 : ((ViewBag.ogsTime - ViewBag.ogsTimeMonth * ViewBag.ogsSignTime) / ViewBag.ogsTimeMonth))<span>个月</span>
                            }

                            @if (ViewBag.ogsTimeMonth <= 1)
                            {
                            <span>0个月</span>
                            }
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            开始日期:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.startDay
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            结束日期:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.endDay
                        </span>

                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            日常总次数:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @(ViewBag.ogsTime + ViewBag.yue) /次
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            日常剩余次数:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @(ViewBag.toTime) /次
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            专项总次数:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @(ViewBag.ogsSeqNum + ViewBag.toZengSongLieji)/次
                        </span>

                    </td>
                </tr>
                <tr>
                    <td align="right" style="height:30px; width:25%;">
                        <span class="title">
                            专项剩余次数:
                        </span>
                    </td>
                    <td style="width:3%;"></td>
                    <td align="left">
                        <span class="desc">
                            @ViewBag.a  /次
                        </span>

                    </td>
                </tr>

            </table>


        }
        @if (ViewBag.resp == 2)
        {
            <h3 style="width:80%; margin:0px auto; margin-top:30%;">订单不存在，请联系管理员.</h3>
        }
        @if (ViewBag.resp == 3)
        {
            <img style="width: 100%;" src="~/Statics/Images/admin/fail.png">
        }
        @if (ViewBag.resp == 4)
        {
            <h3 style="width:80%; margin:0px auto; margin-top:30%;">请先完成管家身份验证.</h3>
        }
        @if (ViewBag.resp == 5)
        {
            <h3 style="width:80%; margin:0px auto; margin-top:30%;">@ViewBag.toSerialNo 订单已完成</h3>
        }
        @if (ViewBag.resp == 6)
        {
            <h3 style="width:80%; margin:0px auto; margin-top:30%;">两小时内您已经打扫过一次了</h3>
        }
        @if (ViewBag.resp == 7)
        {
            <h3 style="width:80%; margin:0px auto; margin-top:30%;">该订单未分配管家</h3>
        }
    </div>
</body>
</html>
@section Scripts{
    @Scripts.Render("~/jsbundles/consumer/subscribe")
    <script>
        var model = new Vue({
            el: '#app',
            data: {},
            methods: {

            }
        })
    </script>
 }
